package cn.amaake.magicplugin.rpc.service;

import cn.amaake.magicplugin.rpc.model.RpcInfo;
import org.ssssssss.magicapi.core.service.AbstractPathMagicResourceStorage;

public class RpcInfoMagicResourceStorage extends AbstractPathMagicResourceStorage<RpcInfo> {

    @Override
    public String folder() {
        return "rpc";
    }

    @Override
    public Class<RpcInfo> magicClass() {
        return RpcInfo.class;
    }


    @Override
    public String buildMappingKey(RpcInfo info) {
        return buildMappingKey(info, magicResourceService.getGroupPath(info.getGroupId()));
    }
}
